﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using App1AppHandler;
using Reborn_WorldServer;
using Reborn_WorldServer.App1AppHandler;

namespace Reborn_Server.App1AppHandler
{
    public class Potion_BagIncrease1 : IConsumable
    {
        public bool MeetsConsumeRequirements(Character character, Loot loot)
        {
            if (character.bagManager.totalPages() == 1)
                return true;

            character.PlaySound("Ding", character.MapX, character.MapY);
            character.SendMessage("Your bag is already to large", "server");

            return false;
        }

        public void Consume(Character myCharacter, Loot lootitem)
        {
            if (myCharacter.bagManager.totalPages() == 1)
                myCharacter.bagManager.createPage();
        }
    }
}
